
<script type="text/javascript" src="themes/soojoy/js/vendor/jquery.shopNav.js"></script>
<link rel="stylesheet" type="text/css" href="themes/soojoy/js/vendor/shopNav.css">

<ul id="category_tree" class="shopNav left-small">
  <?php $_from = $this->_var['categories']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'cat');if (count($_from)):
    foreach ($_from AS $this->_var['cat']):
?>
    <li class="navItem">
        <a href="<?php echo $this->_var['cat']['url']; ?>" class="navTitle clearfix" target="_blank">
            <span class="icon icon-3"></span>
            <span class="name"><?php echo htmlspecialchars($this->_var['cat']['name']); ?>
                <span class="tag tag-new"></span>
            </span>
            <span class="after">&gt;</span>
        </a>
        <div class="navContent ">
            <div class="card">
                <h4 class="cardTitle">
                    <a href="/store/goods/2/128/">推荐商品</a>
                </h4>
                <ul class="cardContent">
                  <?php $_from = $this->_var['cat']['cat_id']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'child');if (count($_from)):
    foreach ($_from AS $this->_var['child']):
?>
                    <li>
                        <a href="<?php echo $this->_var['child']['url']; ?>" ><?php echo htmlspecialchars($this->_var['child']['name']); ?></a>
                    </li>
                  <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
                </ul>
            </div>
        </div>
    </li>
  <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> 
</ul>
<script type="text/javascript">
$("#category_tree").shopNav({
  keepTop:1,
  animateTime:120
});
</script>
<div class="blank"></div>